﻿using System;

namespace ConsoleApp16
{
    class Program
    {
        static void Main(string[] args)
        {
            Student s = new Student();
            Console.WriteLine("输入姓名");
            s.Name = Console.ReadLine();
            Console.WriteLine("输入学号");
            s.StudentId = Console.ReadLine();
            IPerson per = s;
            per.Show(s.Name);
            IStudent stu = s;
            stu.Show(s.StudentId);
        }
    }
}
